/* 离职管理*/
const dpEmployeeResignationRecord = (request) => {
	return {
		// 编辑
		view_dpEmployeeResignationRecord_edit(query = {}) {
			return request(`/bussiness/dpEmployeeResignationRecord/edit`, {
				method: 'post',
				data: query,
			})
		},
		// 分页获取

		view_dpEmployeeResignationRecord_page(query = {}) {
			return request(`/bussiness/dpEmployeeResignationRecord/page`, {
				method: 'post',
				data: query,
			})
		},
		// 新增
		view_dpEmployeeResignationRecord_add(query = {}) {
			return request(`/bussiness/dpEmployeeResignationRecord/add`, {
				method: 'post',
				data: query,
			})
		},
		//  删除
		view_dpEmployeeResignationRecord_del(ids) {
			return request(`/bussiness/dpEmployeeResignationRecord/del`, {
				method: 'post',
				data: {
					batchesDel: ids,
				},
			})
		},
		// 撤销
		view_dpEmployeeResignationRecord_revoke(query = {}) {
			return request(`/bussiness/dpEmployeeResignationRecord/revoke`, {
				method: 'post',
				data: query,
			})
		},
	}
}
/* 请假管理*/
const dpEmployeeLeaveRecord = (request) => {
	return {
		// 编辑
		view_dpEmployeeLeaveRecord_edit(query = {}) {
			return request(`/bussiness/dpEmployeeLeaveRecord/edit`, {
				method: 'post',
				data: query,
			})
		},
		// 分页获取

		view_dpEmployeeLeaveRecord_page(query = {}) {
			return request(`/bussiness/dpEmployeeLeaveRecord/page`, {
				method: 'post',
				data: query,
			})
		},
		// 新增
		view_dpEmployeeLeaveRecord_add(query = {}) {
			return request(`/bussiness/dpEmployeeLeaveRecord/add`, {
				method: 'post',
				data: query,
			})
		},
		//  删除
		view_dpEmployeeLeaveRecord_del(ids) {
			return request(`/bussiness/dpEmployeeLeaveRecord/del`, {
				method: 'post',
				data: {
					batchesDel: ids,
				},
			})
		},
		// 撤销
		view_dpEmployeeLeaveRecord_revoke(query = {}) {
			return request(`/bussiness/dpEmployeeLeaveRecord/revoke`, {
				method: 'post',
				data: query,
			})
		},
	}
}
export default ({ request }: any) => ({
	...dpEmployeeResignationRecord(request),
	...dpEmployeeLeaveRecord(request),
})
